﻿namespace EyeOpen.SecuritySample.Web
{
    using System;

    public partial class Error : System.Web.UI.Page
    {
        protected override void OnLoad(EventArgs e)
        {
            Exception exception = this.Server.GetLastError();

            if (exception == null)
            {
                return;
            }

            this.errorLiteral.Text += exception.Message;

            this.errorRunDevServerLiteral.Visible = (exception.GetType().Name == "EndpointNotFoundException");
        }
    }
}